//
//  DisclaimerViewController.m
//  WildDonkey
//
//  Created by 孙俊 on 15/4/9.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "DisclaimerViewController.h"
#import "DisclaimerView.h"

@interface DisclaimerViewController ()

@end

@implementation DisclaimerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
	
	//DisclaimerView *view = [DisclaimerView DisclaimerViewWithFrame:[UIScreen mainScreen].bounds];
	CGRect rect = [UIScreen mainScreen].bounds;
	
	CGFloat height = rect.size.height;
	CGFloat width = rect.size.width;
	
	_bgView = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
	[_bgView setBackgroundColor: [UIColor whiteColor]];
	
	
//	_titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, width, 20)];
//	//self.titleLabel.textAlignment = NSTextAlignmentCenter;
//	self.titleLabel.font = [UIFont systemFontOfSize:16];
//	self.titleLabel.textColor = [UIColor redColor];
	
	
	_docseLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, width - 40, height - 40)];
	self.docseLabel.numberOfLines = 0;
	self.docseLabel.font = [UIFont systemFontOfSize:21];
	


	
	
	//self.titleLabel.text = @"声明";
	self.docseLabel.text = @"    本 APP 所有内容,包括但不限于文字,图片,音频,视频等均于网络上搜集,访问者可将本 APP 提供的内容用于个人学习或其它非盈利,非商业性用途,但同时应遵守著作权法以及其他相关法律的规定,不得侵犯本 APP 以及相关权利人的合法权利.\n    除此之外,将本 APP 任何内容用于其它用途时,需征得本 APP 及相关权利人的书面授权.如本 APP 所包含内容的原作者不愿意在本 APP 刊登内容,请及时联系本 APP 予以删除";
	[self.bgView addSubview:self.titleLabel];
	[self.bgView addSubview:self.docseLabel];
		[self.view addSubview:self.bgView];
	//[self.view addSubview:view];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
